Integrand size = 26, antiderivative size = 86 \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^{3/2}} \, dx=\frac {2 i \sqrt {2} \text {arctanh}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{a^{3/2} d}-\frac {2 i \sec (c+d x)}{a d \sqrt {a+i a \tan (c+d x)}} \]
[Out]
Time = 0.13 (sec) , antiderivative size = 86, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.115, Rules used = {3572, 3570, 212} \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^{3/2}} \, dx=\frac {2 i \sqrt {2} \text {arctanh}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{a^{3/2} d}-\frac {2 i \sec (c+d x)}{a d \sqrt {a+i a \tan (c+d x)}} \]
[In]
[Out]
Rule 212
Rule 3570
Rule 3572
Rubi steps \begin{align*} \text {integral}& = -\frac {2 i \sec (c+d x)}{a d \sqrt {a+i a \tan (c+d x)}}+\frac {2 \int \frac {\sec (c+d x)}{\sqrt {a+i a \tan (c+d x)}} \, dx}{a} \\ & = -\frac {2 i \sec (c+d x)}{a d \sqrt {a+i a \tan (c+d x)}}+\frac {(4 i) \text {Subst}\left (\int \frac {1}{2-a x^2} \, dx,x,\frac {\sec (c+d x)}{\sqrt {a+i a \tan (c+d x)}}\right )}{a d} \\ & = \frac {2 i \sqrt {2} \text {arctanh}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{a^{3/2} d}-\frac {2 i \sec (c+d x)}{a d \sqrt {a+i a \tan (c+d x)}} \\ \end{align*}
Time = 1.06 (sec) , antiderivative size = 101, normalized size of antiderivative = 1.17 \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^{3/2}} \, dx=\frac {8 e^{3 i (c+d x)} \left (-1+\sqrt {1+e^{2 i (c+d x)}} \text {arctanh}\left (\sqrt {1+e^{2 i (c+d x)}}\right )\right )}{a d \left (1+e^{2 i (c+d x)}\right )^2 (-i+\tan (c+d x)) \sqrt {a+i a \tan (c+d x)}} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 222 vs. \(2 (71 ) = 142\).
Time = 8.94 (sec) , antiderivative size = 223, normalized size of antiderivative = 2.59
method | result | size |
default | \(-\frac {2 \left (-\csc \left (d x +c \right )+\cot \left (d x +c \right )+i\right )^{3} \left (-\sqrt {2}\, \arctan \left (\frac {\left (i \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right )-1\right ) \sqrt {2}}{2 \sqrt {\left (\csc ^{2}\left (d x +c \right )\right ) \left (1-\cos \left (d x +c \right )\right )^{2}-1}}\right ) \sqrt {\left (\csc ^{2}\left (d x +c \right )\right ) \left (1-\cos \left (d x +c \right )\right )^{2}-1}+i \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right )-1\right )}{d {\left (-\frac {a \left (2 i \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right )-\left (\csc ^{2}\left (d x +c \right )\right ) \left (1-\cos \left (d x +c \right )\right )^{2}+1\right )}{\left (\csc ^{2}\left (d x +c \right )\right ) \left (1-\cos \left (d x +c \right )\right )^{2}-1}\right )}^{\frac {3}{2}} {\left (\left (\csc ^{2}\left (d x +c \right )\right ) \left (1-\cos \left (d x +c \right )\right )^{2}-1\right )}^{2}}\) | \(223\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 196 vs. \(2 (67) = 134\).
Time = 0.24 (sec) , antiderivative size = 196, normalized size of antiderivative = 2.28 \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^{3/2}} \, dx=\frac {-i \, \sqrt {2} a^{2} d \sqrt {\frac {1}{a^{3} d^{2}}} \log \left (-\frac {8 \, {\left ({\left (i \, a d e^{\left (2 i \, d x + 2 i \, c\right )} + i \, a d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {1}{a^{3} d^{2}}} - i\right )} e^{\left (-i \, d x - i \, c\right )}}{a d}\right ) + i \, \sqrt {2} a^{2} d \sqrt {\frac {1}{a^{3} d^{2}}} \log \left (-\frac {8 \, {\left ({\left (-i \, a d e^{\left (2 i \, d x + 2 i \, c\right )} - i \, a d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {1}{a^{3} d^{2}}} - i\right )} e^{\left (-i \, d x - i \, c\right )}}{a d}\right ) - 2 i \, \sqrt {2} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}}{a^{2} d} \]
[In]
[Out]
\[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^{3/2}} \, dx=\int \frac {\sec ^{3}{\left (c + d x \right )}}{\left (i a \left (\tan {\left (c + d x \right )} - i\right )\right )^{\frac {3}{2}}}\, dx \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 813 vs. \(2 (67) = 134\).
Time = 0.45 (sec) , antiderivative size = 813, normalized size of antiderivative = 9.45 \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^{3/2}} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^{3/2}} \, dx=\int { \frac {\sec \left (d x + c\right )^{3}}{{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^{3/2}} \, dx=\int \frac {1}{{\cos \left (c+d\,x\right )}^3\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{3/2}} \,d x \]
[In]
[Out]